package com.isoft.game.common.util;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by lcy on 16/8/31.
 */
public class WebUtil {

    /**
     * 判断是否是ajax 请求
     * @param request
     * @return
     */
    public static boolean  isAjaxRequest(HttpServletRequest request){
        return ("XMLHttpRequest".equalsIgnoreCase(request
                .getHeader("X-Requested-With")));
    }
}
